import { sequelize } from '../../db';
import Material from '../factory/material';
import Template from '../factory/template';
import { DataTypes, Model } from 'sequelize';
class MaterialTemplate extends Model { }

MaterialTemplate.init({
    MaterialId: {
        type: DataTypes.INTEGER,
        references: {
            model: Material,
            key: 'id'
        }
    },
    TemplateId: {
        type: DataTypes.INTEGER,
        references: {
            model: Template,
            key: 'id'
        }
    }
}, {
    sequelize
});

export default MaterialTemplate